package com.lmk.homeWork;



import java.util.concurrent.Callable;

public class AccountText {



    public static void main(String[] args) {
        Customer customer=new Customer("Jane","smith");
        Account account=new Account();
        account.setBalance(2000);
        customer.setAccount(account);
        customer.getAccount().withdraw(100);
        customer.getAccount().deposit(960);
        customer.getAccount().deposit(2000);
//        account.withdraw(2565);//不涉及名称所以可以空account调用
//        account.deposit(2565);//不涉及名称所以可以空account调用
        System.out.println("Customer ["+customer.getFirstName()+","+ customer.getLastName()+"]"+"has a account: id is "+account.getId()+","+" annualInterestRate is "+account.getAnnualInterestRate()*100+"%"+",balance is "
                +account.getBalance());
    }




}


